<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null, false)}
        <ul class="nav nav-tabs">
            <li class="active"><a href="#info" data-toggle="tab">客户详情</a></li>
            <li><a href="#visit" data-toggle="tab">回访列表</a></li>
            <li><a href="#receive" data-toggle="tab">申请记录</a></li>
            <li><a href="#record" data-toggle="tab">消费详情</a></li>
            <li><a href="#order" data-toggle="tab">课程订单</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <!-- 客户详情 -->
            <div class="tab-pane fade active in" id="info">
                <div class="panel-body newrow prindBody">
                    <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">客户名称:</label>
                            <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                                {$row.nickname}
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">手机号:</label>
                            <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                                {$row.mobile}
                            </div>
                        </div>
                        {if condition="$row.email"}
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">邮箱:</label>
                                <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                                    {$row.email}
                                </div>
                            </div>
                        {/if}

                        <div class="form-group">
                            <label for="title" class="control-label col-xs-12 col-sm-2">性别:</label>
                            <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                                {$row.gender_text}
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="c-thumbs" class="control-label col-xs-12 col-sm-2">客户来源:</label>
                            <div  class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                                {$row.source.name ?? '未知来源'}
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="price" class="control-label col-xs-12 col-sm-2">成交状态:</label>
                            <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                                {$row.deal_text}
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="price" class="control-label col-xs-12 col-sm-2">地区:</label>
                            <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                                {$row.region_text}
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="price" class="control-label col-xs-12 col-sm-2">认证状态:</label>
                            <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                                {$row.auth == 1 ? '已认证' : '未认证'}
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="price" class="control-label col-xs-12 col-sm-2">创建时间:</label>
                            <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                                {$row.createtime}
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="price" class="control-label col-xs-12 col-sm-2">头像:</label>
                            <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                                <img src="{$row.avatar_text}" width="100" alt="">
                            </div>
                        </div>

                    </form>
                </div>
            </div>

            <!-- 回访记录 -->
            <div class="tab-pane fade" id="visit">
                <div class="widget-body no-padding">
                    <div id="Visittoolbar" class="toolbar">
                        {:build_toolbar('refresh,add,edit,del')}
                    </div>
                    <table id="Visittable" class="table table-striped table-bordered table-hover table-nowrap"
                            data-operate-edit="{:$auth->check('business/businessinfo/edit')}"
                           data-operate-del="{:$auth->check('business/businessinfo/del')}"
                    width="100%">
                    </table>
                </div>
            </div>


            <!-- 申请记录 -->
            <div class="tab-pane fade" id="receive">
                <div class="panel-body newrow prindBody">
                    <div id="Receivetoolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="Receivetable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>

            <!-- 消费详情 -->
            <div class="tab-pane fade" id="record">
                <div class="panel-body newrow prindBody">
                    <div id="Recordtoolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="Recordtable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>

            <!-- 订单详情 -->
            <div class="tab-pane fade" id="order">
                <div class="panel-body newrow prindBody">
                    <div id="OrderRtoolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="Ordertable" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>